﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CarSendEdit.aspx.cs" Inherits="Webcar.Car.CarSendEdit"
    EnableEventValidation="false" %>

<%@ Register Assembly="WebPager" Namespace="Zw.Control" TagPrefix="cc1" %>
<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>派车记录编辑</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="TableEdit" style="width: 700px">
        <div class="content" style="width: 700px">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <uc1:NaviBar ID="NaviBar1" runat="server" />
            <br />
            <div class="tips">
                <span>提示:带*号的项目必须录入</span>
            </div>
            <br />
            <asp:UpdatePanel runat="server" ID="updatepanel1" UpdateMode="Conditional">
                <ContentTemplate>
                    <table id="t" style="width: 700px" cellspacing="1" cellpadding="1" border="0">
                        <tr class="tableAlterItems">
                            <td class="tdleft2">
                                *所属单位：
                            </td>
                            <td class="tdright2">
                                <asp:DropDownList ID="ddlDept" Width="99%" runat="server" OnSelectedIndexChanged="ddlDept_SelectedIndexChanged"
                                    AutoPostBack="true">
                                </asp:DropDownList>
                            </td>
                            <td class="tdleft2">
                                *用车部门：
                            </td>
                            <td class="tdright2">
                                <asp:DropDownList ID="ddwChilddept" Width="99%" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td class="tdleft2">
                                *用车监护人：
                            </td>
                            <td class="tdright2">
                                <asp:TextBox ID="tbJHr" runat="server" Width="96%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tableAlterItems">
                            <td class="tdleft2">
                                *出车时间：
                            </td>
                            <td class="tdright2">
                                <cc1:Calendar ID="dtStartDate" runat="server" IsWrite="False" Width="96%"></cc1:Calendar>
                            </td>
                            <td class="tdleft2">
                                *申请人：
                            </td>
                            <td class="tdright2">
                                <asp:TextBox ID="tbSqr" runat="server" Width="96%"></asp:TextBox>
                            </td>
                            <td class="tdleft2">
                                *用车人数：
                            </td>
                            <td class="tdright2">
                                <asp:TextBox ID="tbNums" runat="server" Width="96%"></asp:TextBox>
                            </td>
                        </tr>
                        
                        <tr class="tableAlterItems">
                            <td class="tdleft2">
                                返回时间：
                            </td>
                            <td class="tdright2">
                                <cc1:Calendar ID="dtReturnDate" runat="server" IsWrite="False" Width="96%"></cc1:Calendar>
                            </td>
                            <td class="tdleft2">
                            </td>
                            <td class="tdright2">
                            </td>
                            <td class="tdleft2">
                            </td>
                            <td class="tdright2">
                            </td>
                        </tr>
                        <tr class="tableAlterItems">
                            <td class="tdleft2">
                                运输物资：
                            </td>
                            <td class="tdright2" colspan="3">
                                <asp:TextBox ID="tbWz" Width="98%" runat="server"></asp:TextBox>
                            </td>
                            <td class="tdleft2">
                                数量(T)：
                            </td>
                            <td class="tdright2">
                                <asp:TextBox ID="tbWzNums" Width="96%" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tableAlterItems">
                        <td class="tdleft2">
                            用车事由：
                        </td>
                        <td colspan="5">
                            <asp:TextBox ID="tbReasons" TextMode="MultiLine" Rows="4" runat="server" Width="99%"></asp:TextBox>
                        </td>
                    </tr>
                        <tr class="tableAlterItems">
                            <td class="tdleft2">
                                往返地点：
                            </td>
                            <td class="tdright2" colspan="5">
                                <asp:TextBox ID="tbPlace" Width="99%" TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                
            <asp:Panel runat="server" ID="Panel1">
                <br />
                审核内容：
                <hr class="line_blue" />
                <table id="t" style="width: 700px" cellspacing="1" cellpadding="1" border="0">
                    <tr class="tableAlterItems">
                        <td class="tdleft2">
                            *车牌号：
                        </td>
                        <td class="tdright2" colspan="5">
                            <asp:DropDownList ID="ddlCar" Width="99%" runat="server"  AutoPostBack="true"
                                onselectedindexchanged="ddlCar_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        
                    </tr>
                    <tr class="tableAlterItems">
                        
                        <td class="tdleft2">
                            *派车人：
                        </td>
                        <td class="tdright2">
                            <asp:TextBox ID="tbSendMan" runat="server" Width="96%"></asp:TextBox>
                        </td>
                        <td class="tdleft2">
                            *驾驶员：
                        </td>
                        <td class="tdright2">
                            <asp:TextBox ID="tbDriverName" runat="server" Width="96%"></asp:TextBox>
                        </td>
                        <td class="tdleft2">
                            用工类别：
                        </td>
                        <td class="tdright2">
                            <asp:DropDownList ID="ddlJobKInd" Width="99%" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr class="tableAlterItems">
                            <td class="tdleft2">
                                *起始公里数：
                            </td>
                            <td class="tdright2">
                                <asp:TextBox ID="tbStartMile" runat="server" Width="96%"></asp:TextBox>
                            </td>
                            <td class="tdleft2">
                                截至公里数：
                            </td>
                            <td class="tdright2">
                                <asp:TextBox ID="tbEndMile" runat="server" Width="96%"></asp:TextBox>
                            </td>
                            <td class="tdleft2">
                            </td>
                            <td class="tdright2">
                            </td>
                        </tr>
                    <tr class="tableAlterItems">
                        <td class="tdleft2">
                            安全交底：
                        </td>
                        <td colspan="5">
                            <asp:TextBox ID="tbAQ" TextMode="MultiLine" Rows="4" runat="server" Width="99%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tableAlterItems">
                        <td class="tdleft2">
                            备注：
                        </td>
                        <td colspan="5">
                            <asp:TextBox ID="tbRemark" TextMode="MultiLine" Rows="4" Width="99%" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddlDept" EventName="SelectedIndexChanged" />
                </Triggers>
            </asp:UpdatePanel>
            <br />
            <div class="footer" style="width: 700px">
                <div class="e">
                    <asp:Label ID="lblInfo" runat="server" ForeColor="Blue" Text=""></asp:Label>
                    <hr class="line_blue" />
                    <asp:Label ID="lblError" runat="server"></asp:Label>
                </div>
                &nbsp;
                <asp:Button ID="btnSave" runat="server" UseSubmitBehavior="false" Text="保存数据" SkinID="default_button"
                    Width="60px" OnClick="btnSave_Click" />
                <asp:Button ID="Button1" runat="server" UseSubmitBehavior="false" Text="返回" SkinID="default_button"
                    Width="60px" OnClick="Button1_Click" />
                <%--<input id="Button2" type="button" value="返回" style="width: 60px" class="button" onclick="javascript:history.back(1);" />--%>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
